﻿//*************************************************************************
//面向服务的协作式智能交通系统仿真软件SoC-ITSS v2.1 alpha
//发布单位：西北工业大学--巴黎高科MINES机器人与群智能系统联合实验室
//团队负责人：张凯龙 Zhang Kailong
//团队成员：张大方、杨安胜、王敏、谢策、王雨佳、谢尘玉等
//联系我们：kl.zhang@nwpu.edu.cn
//2012-2021
//*************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//*******************************************************
//
//文件名(File Name):           V2CMessage.cs
//
//数据表(Tables):              nothing 
//          修改理由：         增加属性、方法
//
//*******************************************************

namespace CyberCarSimulation.Bean
{
    class V2CMessage
    {
        private string Sender;              //信息发送方
        private string Receiver;            //信息接收方 id
        private int Type;                   //信息类型，由消息的类别标识
        private string StartIntersection;   //起始路口
        private string EndIntersection;     //终止路口

        //无参构造函数
        public V2CMessage() 
        {
        }

        //有参构造函数
        public V2CMessage(string Sender, string Receiver, int Type, string StartIntersection, string EndIntersection)
        {
            this.Type = Type;                           //信息类型，由消息的类别标识
            this.Sender = Sender;                       //信息发送方
            this.Receiver = Receiver;                   //信息接收方 id
            this.StartIntersection = StartIntersection; //起始路口
            this.EndIntersection = EndIntersection;     //终止路口
        }

        public int GetType()
        {
            return this.Type;
        }

        public void SetType(int Type)
        {
            this.Type = Type;
        }

        public string GetSender()
        {
            return this.Sender;
        }

        public void SetSender(string Sender)
        {
            this.Sender = Sender;
        }

        public string GetReceiver()
        {
            return this.Receiver;
        }

        public void SetReceiver(string Receiver)
        {
            this.Receiver = Receiver;
        }


        public string GetStartIntersection()
        {
            return this.StartIntersection;
        }

        public void SetStartIntersection(string StartIntersection)
        {
            this.StartIntersection = StartIntersection;
        }

        public string GetEndIntersection()
        {
            return this.EndIntersection;
        }

        public void SetEndIntersection(string EndIntersection)
        {
            this.EndIntersection = EndIntersection;
        }
    }
}
